﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace DealerJudge.Core
{
    public sealed class LoggerFactory
    {
        static LoggerFactory()
        {
            log4net.Config.XmlConfigurator.Configure();
        }

        public static Logger GetLogger()
        {
            StackTrace stackTrace = new StackTrace();
            StackFrame stackFrame = new StackFrame();
            return new Logger(log4net.LogManager.GetLogger(stackFrame.GetMethod().DeclaringType));
        }
    }
}
